<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- 包含头部信息用于适应不同设备 -->
<meta name="viewport"
	content="width=device-width, initial-scale=1
    	user-scalable=no">
<!-- 包含 bootstrap 样式表 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/BootStrap/css/bootstrap.min.css">
<!-- JavaScript 放置在文档最后面可以使页面加载速度更快 -->
<!-- 可选: 包含 jQuery 库 -->
<script
	src="${pageContext.request.contextPath }/BootStrap/js/jquery-3.1.1.js"></script>
<!-- 可选: 合并了 Bootstrap JavaScript 插件 -->
<script
	src="${pageContext.request.contextPath }/BootStrap/js/bootstrap.min.js"></script>
<title>学生首页</title>
<!--学生的整体框架-->
<script type="text/javascript">
	$(document)
			.ready(
					function() {

						//主页
						$("a.s_home")
								.click(
										function() {
											$("iframe")
													.attr("src",
															"${pageContext.request.contextPath }/student?method=studentHome");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>公告栏</li>");
										});
						//课程简介
						$("a.allS")
								.click(
										function() {
											$("iframe")
													.attr(
															"src",
															"${pageContext.request.contextPath }/student?method=studentScan&type=simpleinfo");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>公告栏</li>");
										});
						//教师简介
						$("a.teacherinfo")
								.click(
										function() {
											$("iframe")
													.attr(
															"src",
															"${pageContext.request.contextPath }/student?method=studentScan&type=teacherinfo");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>公告栏</li>");
										});
						//先导课程
						$("a.beforelear")
								.click(
										function() {
											$("iframe")
													.attr(
															"src",
															"${pageContext.request.contextPath }/student?method=studentScan&type=beforelear");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>公告栏</li>");
										});

						//教学计划
						$("a.plan")
								.click(
										function() {
											$("iframe")
													.attr("src",
															"${pageContext.request.contextPath }/student?method=studentScan&type=plan");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>公告栏</li>");
										});
						//考试方式
						$("a.exam")
								.click(
										function() {
											$("iframe")
													.attr("src",
															"${pageContext.request.contextPath }/student?method=studentScan&type=exam");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>公告栏</li>");
										});
						//参考书目
						$("a.learnbooks")
								.click(
										function() {
											$("iframe")
													.attr(
															"src",
															"${pageContext.request.contextPath }/student?method=studentScan&type=learnbooks");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>公告栏</li>");
										});
						//下载课件
						$("a.courseware")
								.click(
										function() {
											$("iframe")
													.attr(
															"src",
															"${pageContext.request.contextPath }/student?method=studentScan&type=courseware");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>下载课件</li>");
										});
						//当前作业
						$("a.homework")
								.click(
										function() {
											$("iframe")
													.attr("src",
															"${pageContext.request.contextPath }/homework?method=studentHomework&type=1");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>当前作业</li>");
										});
						//个人设置
						$("a.personalseting")
								.click(
										function() {
											$("iframe")
													.attr("src",
															"${pageContext.request.contextPath }/student?method=page&to=s_personalseting");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>个人设置</li>");
										});

						//上传作业
						$("a.upload")
								.click(
										function() {
											$("iframe")
													.attr("src",
															"${pageContext.request.contextPath }/student?method=page&to=s_uploadwork");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>上传作业</li>");
										});

						//查看批阅
						$("a.showcheck")
								.click(
										function() {
											$("iframe")
													.attr("src",
															"${pageContext.request.contextPath }/studentexamscore?method=studentScanExam");
											//面包屑导航
											$("ol.breadcrumb")
													.html(
															"<li><a href='javascript:void(0)''>首页</a></li>"
																	+ "<li class='active'>查看批阅</li>");
										});
					});
</script>
</head>
<body>
	<%-- <%
	if(session.getAttribute("visited") == null) {
		out.print("<script language='javascript'>alert('请先登录系统！');window.location = 'login.jsp';</script>");
	}
	%> --%>
	<!--整个页面栅格-->
	<div class="container-fluid"
		style="background-color: blasck; margin-left: 100px; margin-right: 100px; padding-top: 0px;">
		<div class="row-fluid">
			<div class="span12">

				<!--系统头部-->
				<div class="page-header"
					style="margin-top: 0px; height: 42px; clear: all;">
					<h1 class="text-center">
						<span><strong>作业管理系统</strong></span>
						<!-- <img src="img/bom.gif" style="margin-left: 12%;"> -->
					</h1>
				</div>

				<!--菜单栏-->
				<nav class="navbar navbar-default" role="navigation">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse"
							data-target="#bs-example-navbar-collapse-1">
							<span class="sr-only">Toggle navigation</span><span
								class="icon-bar"></span><span class="icon-bar"></span> <span
								class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#"><span
							class="glyphicon glyphicon-pencil" style="font-size: 25px;"></span></a>
					</div>

					<div class="collapse navbar-collapse"
						id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li><a href="#" class="dropdown-toggle s_home">首 页</a></li>
							<!-- <li><a href="#" class="dropdown-toggle download">课程信息</a></li> -->
							<li class="dropdown"><a href="#" class="dropdown-toggle"
								data-toggle="dropdown">课程信息</a>
								<ul class="dropdown-menu">
									<li><a href="#" class="allS">课程简介</a></li>
									<li class="divider"></li>
									<li><a href="#" class="teacherinfo">教师简介</a></li>
									<li><a href="#" class="beforelear">先导课程</a></li>
									<li><a href="#" class="plan">教学计划</a></li>
									<li><a href="#" class="exam">考试方式</a></li>
									<li><a href="#" class="learnbooks">参考书目</a></li>
									<li><a href="#" class="courseware">课件下载</a></li>
								</ul></li>
							</li>
							<li><a href="#" class="dropdown-toggle"
								data-toggle="dropdown">在线作业</a>
								<ul class="dropdown-menu">
									<li><a href="#" class="homework">当前作业</a></li>
								</ul></li>
							</li>
							<li><a href="#" class="dropdown-toggle showcheck">成绩查询</a></li>
						</ul>
						<form class="navbar-form navbar-left" role="search">
							<div class="form-group">
								<input type="text" class="form-control" />
							</div>
							<button type="button" class="btn btn-default">
								<span class="glyphicon glyphicon-search"></span>
							</button>
						</form>
						<ul class="nav navbar-nav navbar-right">
							<li>
								<!-- <a href="#"><span
									class="glyphicon glyphicon-envelope" style="font-size: 20px;"></a> -->
								<img src="${pageContext.request.contextPath }/img/header.gif"
								class="img-circle" style="width: 40px; height: 40px;">
							</li>
							<li><strong><span style="line-height: 55px;">学生:&nbsp;${user.name  }</span></strong></li>
							<li class="dropdown"><a href="#" class="dropdown-toggle"
								data-toggle="dropdown"><span
									class="glyphicon glyphicon-user" style="font-size: 20px;"></span><strong
									class="caret"></strong></a>
								<ul class="dropdown-menu">
									<li><a href="#">学生：&nbsp;${user.name  }</a></li>
									<li><a href="#" class="personalseting">个人设置</a></li>
									<li class="divider"></li>
									<li><a href="logout"><span
											class="glyphicon glyphicon-off"></span>注 销</a></li>
								</ul></li>
						</ul>
					</div>
				</nav>
				<!--面包屑导航-->
				<ol class="breadcrumb">
					<li><a href="javascript:void(0)">主页</a></li>
				</ol>
				<hr>
				<!--iframe框架内容-->
				<div class="row-fluid">
					<!--m_teachermanage.html   -->
					<div class="span12">
						<div style="height: 1000px;">
							<!-- seamless="seamless" 无边框或滚动条 -->
							<iframe
								src="${pageContext.request.contextPath }/student?method=page&to=s_home"
								frameborder="0" seamless="seamless" marginheight="0px"
								marginwidth="0px" width="100%" height="100%""></iframe>

						</div>
					</div>
				</div>


				<!--脚部地址-->
				<div class="text-center" style="margin-top: 30%;">
					<hr />
					<address>2019-2020学年第二学期《JSP程序设计》期末大作业</address>
				</div>

			</div>
		</div>
	</div>
</body>
</html>